//
//  NSString+TelNum.m
//  KaiXinJingPai
//
//  Created by liu xiwang on 2018/3/22.
//  Copyright © 2018年 canfu. All rights reserved.
//

#import "NSString+TelNum.h"

@implementation NSString (TelNum)
+ (NSString*)changeTelephone:(NSString *)teleStr{
    if (teleStr.length != 11) {
        return teleStr;
    }
    NSString *string=[teleStr stringByReplacingOccurrencesOfString:[teleStr substringWithRange:NSMakeRange(3,4)]withString:@"****"];
    return string;
}
@end
